﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoolCode.Data
{
    /// <summary>
    /// 主键属性
    /// <example>[PrimaryKey("PK1")], [PrimaryKey("PK1,PK2")]</example>
    /// </summary>
    public class PrimaryKeyAttribute : Attribute
    {
        public string Key { get; set; }

        public  PrimaryKeyAttribute()
        {
        }

        public PrimaryKeyAttribute(string key)
        {
            this.Key = key;
        }
 
    }
}
